package com.ddf.springdata.jpa.service;

import com.ddf.springdata.jpa.dao.IdCardRepository;
import com.ddf.springdata.jpa.entity.IdCard;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author DDf on 2018/9/30
 */
@Service
public class IdCardService {
    @Autowired
    private IdCardRepository idCardRepository;

    @Transactional
    public IdCard save(IdCard idCard) {
        return idCardRepository.save(idCard);
    }
}
